package com.cust.cow.controller;

import com.cust.cow.common.Result;
import com.cust.cow.pojo.quarantineLog;
import com.cust.cow.service.QuarantineLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/quarantineLog")
@CrossOrigin("*")
public class QuarantineLogController {
    @Autowired
    QuarantineLog quarantineLogService;

    @RequestMapping("findQuarantineLogAll")
    public List<quarantineLog> findQuarantineLogAll(){
        return quarantineLogService.findQuarantineLogAll();
    }

    @PostMapping("insertQuarantineLog")
    public Result insertQuarantineLog(@RequestBody quarantineLog quarantineLog){
        return quarantineLogService.insertQuarantineLog(quarantineLog);
    }
}
